package com.sservice.service.service.impl;

import com.sservice.model.dao.SpFavorMapper;
import com.sservice.model.entity.SpFavor;
import com.sservice.service.service.ISpFavorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by suweiming on 2017/12/20.
 */


@Service
public class SpFavorServiceImpl implements ISpFavorService {

    @Autowired
    private SpFavorMapper dao;


    @Override
    public int deleteByPrimaryKey(Integer id) {
        return dao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(SpFavor record) {
        return dao.insert(record);
    }

    @Override
    public int insertSelective(SpFavor record) {
        return dao.insertSelective(record);
    }

    @Override
    public SpFavor selectByPrimaryKey(Integer id) {
        return dao.selectByPrimaryKey(id);
    }

    @Override
    public List<SpFavor> queryByUserId(String userId) {
        return dao.queryByUserId(userId);
    }

    @Override
    public int updateByPrimaryKeySelective(SpFavor record) {
        return dao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SpFavor record) {
        return dao.updateByPrimaryKey(record);
    }

    @Override
    public int deleteByUserIdAndOfferId(SpFavor record) {
        return dao.deleteByUserIdAndOfferId(record);
    }
}
